/**
 * 
 */
package org.mspring.crm.service.dataimport.impl;

import org.mspring.crm.dao.dataimport.TableDao;
import org.mspring.crm.entity.dataimport.Table;
import org.mspring.crm.service.dataimport.TableService;
import org.mspring.platform.dao.support.Page;
import org.mspring.platform.dao.support.QueryAppender;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author Gao Youbo
 * @since Feb 26, 2012
 */
@Service
@Transactional
public class TableServiceImpl implements TableService {
    private TableDao tableDao;

    @Autowired
    public void setTableDao(TableDao tableDao) {
        this.tableDao = tableDao;
    }

    /*
     * (non-Javadoc)
     * 
     * @see org.mspring.crm.service.dataimport.TableService#queryTable(org.mspring.platform.dao.support.Page,
     *      org.mspring.platform.dao.support.QueryAppender)
     */
    public Page<Table> queryTable(Page<Table> page, QueryAppender queryAppender) {
        // TODO Auto-generated method stub
        return tableDao.findPage(page, queryAppender);
    }

}
